<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <template id="App">
      <div>
        <div v-text="text" @click="onClick"></div>
      </div>
    </template>

    <script src="./dist/dist.js"></script>
    <script>
      var application = new PIXI.Application({
        transparent: true,
      });

      document.body.appendChild(application.view);

      const vm = new Pixijsvue({
        el: "#App",
        data() {
          return {
            text: "HelloWorld",
          };
        },
        methods: {
          onClick() {
            this.text = "are you ready";
          },
        },
      });

      vm.loaded().then(() => {
        application.stage.addChild(vm.$vm);
        window.App = application;
        window.vm = vm;
      });
    </script>
  </body>
</html>
